/*
 * @Author: tcosfish
 * @Date: 2022-08-25 15:28:38
 * @LastEditors: tcosfish
 * @LastEditTime: 2022-08-25 17:30:14
 * @FilePath: \ry-frontend\vite.config.ts
 */
import { fileURLToPath, URL } from "node:url"

import { defineConfig } from "vite"
import vue from "@vitejs/plugin-vue"
import vueJsx from "@vitejs/plugin-vue-jsx"
import ElementPlus from "unplugin-element-plus/vite"
import Icons from "unplugin-icons/vite"

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue(), vueJsx(), ElementPlus(), Icons()],
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", import.meta.url)),
    },
  },
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: "@import './src/assets/scss/main.scss';",
      },
    },
  },
})
